﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.stack_settle_offset>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	沉降及位移观测（每月）
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul>
                <li><a href="/Record/StackWater/<%=ViewData["id"] %>?date=<%=(DateTime)ViewData["originalDate"] %>&factoryId=<%=ViewData["factoryId"] %>"><span>水位及水质</span></a></li>
                <li><a href="/Record/BackWater/<%=ViewData["id"] %>?date=<%=(DateTime)ViewData["originalDate"] %>&factoryId=<%=ViewData["factoryId"] %>"><span>进浆及回水</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>沉降及位移观测</span></a></li>
                <li><a href="/Record/Ardealite/<%=ViewData["id"] %>?date=<%=(DateTime)ViewData["originalDate"] %>&factoryId=<%=ViewData["factoryId"] %>"><span>磷石膏堆积坝</span></a></li>
                <li><a href="/Record/Ditch/<%=ViewData["id"] %>?date=<%=(DateTime)ViewData["originalDate"]%>&factoryId=<%=ViewData["factoryId"] %>"><span>截洪沟</span></a></li>
                <li><a href="/Record/PiezometerWell/<%=ViewData["id"] %>?date=<%=(DateTime)ViewData["originalDate"]%>&factoryId=<%=ViewData["factoryId"] %>"><span>测压井</span></a></li>
                <li><a href="/Record/PiezometerBase/<%=ViewData["id"] %>?date=<%=(DateTime)ViewData["originalDate"]%>&factoryId=<%=ViewData["factoryId"] %>"><span>测压仪</span></a></li>
                <li><a href="/Record/Drain/<%=ViewData["id"] %>?date=<%=(DateTime)ViewData["originalDate"]%>&factoryId=<%=ViewData["factoryId"] %>"><span>导渗系统</span></a></li>
	        </ul>
	    </div>
	</div>

    <%
           bool result = (bool)ViewData["success"];
           if(result){ 
        %>
           <div style="margin-top:20px;font-weight:bold;color:blue;text-align:center">沉降及位移观测更新成功</div>
        <%
        }
        %>

    <% using (Html.BeginForm())
    {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.stack_id) %>
        <%= Html.Hidden("factoryId", ViewData["factoryId"]) %>
        <%= Html.Hidden("date", (DateTime)ViewData["originalDate"])%>
            
    <table class="tableCss" cellspacing="0" cellpadding="0" align="center" border="0" style="margin-top:10px">
        <tr>
            <th colspan="2" class="heightrow" align="center" style="text-align:center">
                沉降及位移观测（每月）
            </th>
        </tr>
        <tr>
            <td class="row1" align="left" width="100px" style="padding-left:20px">测量人员：</td>
            <td class="row1" align="left">
                <%= Html.DropDownList("tester_id", ViewData["users"] as List<SelectListItem>, "请选择", new { style = "width:150px" })%>
                <%= Html.ValidationMessageFor(model => model.tester_id)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">初期坝坝顶高程：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.dike_init_top_El)%> m
                <%= Html.ValidationMessageFor(model => model.dike_init_top_El)%>
            </td>
        </tr>
<%
    stack_settle_offset_pool_info[] offsetPoolInfos = (stack_settle_offset_pool_info[])ViewData["offsetPoolInfos"];
    for (int i = 0; i < offsetPoolInfos.Length; i++)
    {
%>
        <tr>
            <td class="row1" align="left" style="padding-left:20px" >调节水池<%=(i+1) %>#挡水坝高程：</td>
            <td class="row1" align="left">
                <%= Html.TextBox("ditch_El" + (i + 1), offsetPoolInfos[i].ditch_El)%> m
                <%= Html.ValidationMessage("ditch_El" + (i + 1))%>
            </td>
        </tr>
<%
    } 
%>    
        <tr>
            <td class="row1" align="left" style="padding-left:20px">库尾坝坝顶高程：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.tailing_dike_top_El)%> m
                <%= Html.ValidationMessageFor(model => model.tailing_dike_top_El)%>
            </td>
        </tr>

        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">坝体有无异常变形：</td>
        </tr>
        <tr>
            <td colspan="2"  class="row1" align="left" style="padding-left:20px">
                <span><input type="radio" name="is_shape_changed" value="1" <%if (Model.is_shape_changed == 1){ %> checked="checked"<%} %>/>有</span>
                <span><input type="radio" name="is_shape_changed" value="0" <%if (Model.is_shape_changed == 0){ %> checked="checked"<%} %>/>无</span>
            </td>
        </tr>
        <tr>
            <td colspan="2"  class="row1"  align="left" style="padding-left:20px">
                <%= Html.TextAreaFor(model => model.shape_change_desc, new { cols="80",rows="10"})%>
                <%= Html.ValidationMessageFor(model => model.shape_change_desc)%>
            </td>
        </tr>

        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">挡水坝下游有无渗流迹象：</td>
        </tr>
        <tr>
            <td colspan="2"  class="row1"  align="left" style="padding-left:20px">
                <span><input type="radio" name="is_ditch_leaked" value="1" <%if (Model.is_ditch_leaked == 1){ %> checked="checked"<%} %>/>有</span>
                <span><input type="radio" name="is_ditch_leaked" value="0" <%if (Model.is_ditch_leaked == 0){ %> checked="checked"<%} %>/>无</span>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="row1"  align="left" style="padding-left:20px">
                <%= Html.TextAreaFor(model => model.ditch_leaked_desc, new { cols="80",rows="10"})%>
                <%= Html.ValidationMessageFor(model => model.ditch_leaked_desc)%>
            </td>
        </tr>

        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">当月情况补充：</td>
        </tr>
        <tr>
            <td colspan="2" class="row1" align="left" style="padding-left:20px">
                <%= Html.TextAreaFor(model => model.description, new { cols="80",rows="10"})%>
                <%= Html.ValidationMessageFor(model => model.description)%>
            </td>
        </tr>
    </table>
    <div style="margin-top:25px;text-align:center">
        <%=Html.Hidden("poolNum", offsetPoolInfos.Length)%>
        <input type="submit" value="提    交" style="font-size:16px;font-weight:bold" />
    </div>
    <% } %>
</asp:Content>
